﻿@model CNDreams.Web.Areas.ModuleSys.Models.ModelPasswordRetrieveIndex
@{
	Layout = null;
}

<div class="common-table-container">
	<table class="common-table" id="common-table">
		<colgroup>
			<col width="30" />
			<col width="80" />
			<col width="130" />
			<col width="100" />
			<col width="150" />
			<col width="100" />
		</colgroup>
		<thead>
			<tr>
				<th>
					<input type="checkbox" class="common-table-checkbox-all" />
				</th>
				@Html.HiddenFor(x => x.SearchEntity._OrderName, new { data_order_name = "" })
				@Html.HiddenFor(x => x.SearchEntity._OrderDirection, new { data_order_direction = "" })
				@(Html.ThOrderHelper<CNDreams.Entity.SysUser>(x => x.UserAccount, "用户账号"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysUser>(x => x.UserName, "姓名"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysUser>(x => x.Mobile, "手机"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysUser>(x => x.Email, "邮箱"))
				@(Html.ThOrderHelper<CNDreams.Entity.SysUser>(x => x.Status, "状态"))
			</tr>
		</thead>
		<tbody>
			@foreach (var item in Model.GridDataSources)
   {
				<tr>
					<td>
						@Html.CheckBox("checkboxItem", new { @class = "checkboxItem", value = item.ID })
					</td>
					<td>
						@item.UserAccount
					</td>
					<td>
						@item.UserName
					</td>
					<td>
						@item.Mobile
					</td>
					<td>
						@item.Email
					</td>
					<td>
						@(item.Status == (int)CNDreams.Enum.EnumUserStatus.已激活 ? CNDreams.Enum.EnumUserStatus.已激活.ToString() : CNDreams.Enum.EnumUserStatus.待激活.ToString())
					</td>
				</tr>
   }
		</tbody>
	</table>
</div>
<!--分页显示-->
<div>
	@{
		Html.RenderPartial("/Views/Controls/Paginate.cshtml", Model.PaginateHelperObject);
	}
</div>
